package org.loujiarong.yugioh.gameplay.card;

import org.loujiarong.yugioh.gameplay.duel.Duel;
import org.loujiarong.yugioh.gameplay.duel.Player;
import org.loujiarong.yugioh.util.GameConstants.CardPosition;

public abstract class Card
{
   protected static String name;
   protected static String desc;
   protected static String pic;
   protected static int id;
   protected static String sn;

   protected Player owner, controller;
   protected CardPosition pos;
   protected int fieldPos;
   
   public abstract boolean checkCondition(Duel duel);
   
   public String getName()
   {
      return name;
   }

   public String getDesc()
   {
      return desc;
   }

   public String getPic()
   {
      return pic;
   }

   public Player getOwner()
   {
      return owner;
   }
   public void setOwner(Player owner)
   {
      this.owner = owner;
   }
   public Player getController()
   {
      return controller;
   }
   public void setController(Player controller)
   {
      this.controller = controller;
   }
   public CardPosition getPos()
   {
      return pos;
   }
   public void setPos(CardPosition pos)
   {
      this.pos = pos;
   }
   public String toString() {
	   return name;
   }

	public int getFieldPos() {
		return fieldPos;
	}
	
	public void setFieldPos(int fieldPos) {
		this.fieldPos = fieldPos;
	}
	   
}
